package top.shmly.universal.service;

import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;
import top.shmly.universal.base.common.MenuVo;
import top.shmly.universal.base.common.RoleVo;
import top.shmly.universal.base.common.UserVo;

import java.util.List;

/**
 * @program: universal
 * @description: test
 * @author: Jibny
 * @date 2021-04-25 16:46:45
 */

public interface UpmsService {

    UserVo findByUsername(@PathVariable("username") String username);

    List<RoleVo> getRoleByUserId(@PathVariable("userId") Integer userId);

    List<MenuVo> getRolePermission(@PathVariable("roleId") Integer roleId);

    List<MenuVo> getRolesPermission(@PathVariable("roleId") List<Integer> roleIds);

}
